int strStr(char* haystack, char* needle)
{
    for (int i = 0; haystack[i] != '\0'; i++)
    {
        if (haystack[i] == needle[0])
        {
            int k = 1;
            int find = 1;
            for (int j = i + 1; haystack[j] != '\0'; j++)
            {
                if (needle[k] == '\0')
                    break;
                if (haystack[j] != needle[k++])
                {
                    find = 0;
                    break;
                }
            }
            if (find && needle[k] == '\0')
                return i;
        }
    }

    return -1;
}